from selenium import webdriver

chromedriver = 'chromedriver'

# 配置对象
options = webdriver.ChromeOptions()
# 隐藏「Chrome正受到自动测试软件的控制」
options.add_experimental_option('excludeSwitches', ['enable-automation'])

# 创建浏览器驱动对象
driver = webdriver.Chrome(executable_path=chromedriver, chrome_options=options)

# 打开网页
driver.get('https://www.baidu.com')